package com.bit.aop.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Slf4j
@Aspect
@Component
public class AspectDemo2 {
    @Before("com.bit.aop.aspect.AspectDemo1.pt()")
    public void doBefore(){
        log.info("AspectDemo2....doBefore.......");
    }
    @After("com.bit.aop.aspect.AspectDemo1.pt()")
    public void doAfter(){
        log.info("AspectDemo2......doAfter.........");
    }
}
